package cn.lbz.Login;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.Serial;

public class LoginRequireServlet extends HttpServlet{
    @Serial
    private static final long serialVersionUID= -413199671677517038L;
    public void doGet(HttpServletRequest request,HttpServletResponse response) throws IOException {
        this.doPost(request,response);
    }
    public  void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException {
        response.sendError(HttpServletResponse.SC_UNAUTHORIZED,"需要登录");
    }
}

